package com.bjsxt.chapter2_factory.abstractFactory;

/**
 * @ClassName Engine
 * @Description 发动机引擎
 * @Author 黑马程序员
 * @Date 17:39 2024/6/20
 * @Version 1.0
 **/
public interface Engine {
    void run();
    void start();
}

class LuxuryEngine implements Engine{

    @Override
    public void run() {
        System.out.println("转得快!");
    }

    @Override
    public void start() {
        System.out.println("启动快!可以自动启停!");
    }
}

class LowEngine implements Engine{

    @Override
    public void run() {
        System.out.println("转得慢!");
    }

    @Override
    public void start() {
        System.out.println("启动慢!");
    }
}
